﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using WebReference;
using Session;

public partial class Admin_Previous_Pages_PreMaterial : System.Web.UI.Page
{
    Service objService = new Service();

    protected void Page_Load(object sender, EventArgs e)
    {
        bindDataGrid();
    }
    protected void dgMaterial_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        dgMaterial.PageIndex = e.NewPageIndex;
        bindDataGrid();
    }

    #region Private methods
    private void bindDataGrid()
    {
        DataSet ds = new DataSet();
        ds = objService.GetAllMaterial();
        dgMaterial.DataSource = ds;
        dgMaterial.DataBind();
    }

    #endregion

    protected void dgMaterial_RowEditing(object sender, GridViewEditEventArgs e)
    {

    }
}
